<template>
	<view class="Visits-box">
		<view class="patient-card">
			
			<text class="patientname"> {{ patientNmae }}   </text> 
			
			<view class="patient" @click="mypatient">
				
				切换就诊人
				
				</view>
			
				<img src="../../static/ercode.png" alt="">
		</view>
		
		<view class="classify">
			<view class="item" @click="toDepartment">
				<view class="iconfont icon-jiankangguanli6"></view>
				<view class="name">按科室挂号</view>
			</view>
			<view class="item"  @click="tosearchDoctor">
				<view class="iconfont icon-yishengyishengjieshao"></view>
				<view class="name">搜索医生挂号</view>
			</view>
			<view class="item">
				<view class="iconfont icon-neike-"></view>
				<view class="name">搜索专科挂号</view>
			</view>
			<view class="item">
				<view class="iconfont icon-quhao1"></view>
				<view class="name">新冠康复门诊</view>
			</view>
			<view class="item">
				<view class="iconfont icon-Ic-jingzhuianmoqi-zhenjiu"></view>
				<view class="name">天灸</view>
			</view>
			<view class="item">
				<view class="iconfont icon-zhongyike"></view>
				<view class="name">膏方预约</view>
			</view>
			<view class="item">
				<view class="iconfont icon-jiankangguanli3"></view>
				<view class="name">健康管理中心</view>
			</view>
			<view class="item">
				<view class="iconfont icon-quhao1"></view>
				<view class="name">加号取号</view>
			</view>
			<view class="item"></view>
		</view>
	</view>
</template>

<script>

	export default{
		data(){
			return{
				patientNmae:''
				
			}
		},

		methods:{
			toDepartment(){
				uni.navigateTo({
					url:'../../pages/Department/Department'
				})
			},
			tosearchDoctor(){
				uni.navigateTo({
					url:'../../pages/searchDoctor/searchDoctor'
				})
				
			},
			mypatient(){
				uni.navigateTo({
					url:'../../pages/visitingPerson/visitingPerson'
				})
			}
			
		},
		onLoad(options){
			console.log( options.name )
			this.patientNmae = options.name
			
		}
	}
	
	
</script>

<style lang="scss">
	*{
		padding: 0px;
		margin: 0px;
	}
	.patientname{
		color: #fff;
		margin-right: 20px;
		font-size: 20px;
	}
	.Visits-box{
		width: 100%;
		height: 100vh;
		.patient-card{
			width: 95%;
		    height: 120px;
		    margin: 10px auto;
		    background-color: #6cc9b6;
		    border-radius: 10px;
			display: flex;
			justify-content: flex-end;
			align-items: center;
			.patient{
				width: 100px;
				height: 30px;
				line-height: 30px;
				text-align: center;
				font-size: 14px;
				border: 1px solid #fff;
				border-radius: 5px;
				color: #fff;
				box-sizing: border-box;
				margin-right: 15px;
			}
			img{
				width: 30px;
				height: 30px;
				// border-radius: 5px;
				margin-right: 16px;
			}
		}
		.classify{
			width: 95%;
			margin: 10px auto;
			display: flex;
			flex-wrap: wrap;
			justify-content: space-between;
			.item{
				width: 33%;
				height: 110px;
				display: flex;
				flex-direction: column;
				justify-content: center;
				align-items: center;
				.name{
					margin-top: 10px;
				}
				
				.iconfont{
					font-size: 40px;
				}
			}
		}
		
	}
	
	
</style>